import request from '@/utils/request'

// 查询期中测试列表
export function listTest(query) {
  return request({
    url: '/points/test/list',
    method: 'get',
    params: query
  })
}

// 查询期中测试详细
export function getTest(id) {
  return request({
    url: '/points/test/' + id,
    method: 'get'
  })
}

// 新增期中测试
export function addTest(data) {
  return request({
    url: '/points/test',
    method: 'post',
    data: data
  })
}

// 修改期中测试
export function updateTest(data) {
  return request({
    url: '/points/test',
    method: 'put',
    data: data
  })
}

// 删除期中测试
export function delTest(id) {
  return request({
    url: '/points/test/' + id,
    method: 'delete'
  })
}






// 查询期中课程列表
export function listKecheng(query) {
  return request({
    url: '/points/kecheng/list',
    method: 'get',
    params: query
  })
}

// 查询期中课程详细
export function getKecheng(id) {
  return request({
    url: '/points/kecheng/' + id,
    method: 'get'
  })
}

// 新增期中课程
export function addKecheng(data) {
  return request({
    url: '/points/kecheng',
    method: 'post',
    data: data
  })
}

// 修改期中课程
export function updateKecheng(data) {
  return request({
    url: '/points/kecheng',
    method: 'put',
    data: data
  })
}

// 删除期中课程
export function delKecheng(id) {
  return request({
    url: '/points/kecheng/' + id,
    method: 'delete'
  })
}
//查找学生
export function student() {
  return request({
    url: '/points/kecheng/student' ,
    method: 'get'
  })
}

// 新增预约
export function yuyu(query) {
  return request({
    url: '/points/kecheng/yuyu',
    method: 'put',
    params: query
  })
}
//
export function jia(query) {
  return request({
    url: '/points/kecheng/jia',
    method: 'put',
    params: query
  })
}


